<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .one,
    .two {
      width: 200px;
      height: 200px;
    }

    .son {
      width: 100px;
      height: 100px;
      background-color: black;
      margin-top: 30px;
    }

    .one {
      display: grid;
      margin-top: 30px;
      background-color: antiquewhite;
    }

    .two {
      margin-top: 30px;
      background-color: aqua;
    }
  </style>
</head>
<body>
  <div class="one">
    <div class="son"></div>
    栅格容器
  </div>
  <div class="two">
    <div class="son"></div>
    块级容器
  </div>
</body>
</html>